根据pip官网说明,使用get-pip.py安装失败。
官网说明Note
The get-pip.py script is supported on the same python version as pip. For the now unsupported Python 2.6, alternate script is available here.
下载get-pip.py
curl https://bootstrap.pypa.io/2.6/get-pip.py -o get-pip.py
安装pip
注意:使用python2.6.6安装,因为我的环境中python指向的是2.6.6,所以直接使用下面命令进得安装。
python get-pip.py
报错如下
[root@javen-zhao pip2.6]# python get-pip.py
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting pip<10
Retrying